package com.bungarus.rm.model;

import java.util.Optional;

/**
 * Created by tang on 2019/1/13.
 */
public interface CacheContainer {
    Optional<? extends Containable> findInCache(UniqueNodeID uniqueId);

    boolean saveInCache(UniqueNodeID uniqueNodeID, Containable scope);

    Optional<? extends Containable> invalidScopeInCache(UniqueNodeID id);
}
